package com.xnyy.lottery.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.*;

/**
 * @description: 车库实体
 * @auther: Administrator
 * @date: 2022/9/16 02:10
 */
@Data
@TableName("t_region")
public class Region {
    //未知区域
    public static final String X = "X";
    
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 车库名称 A、B、C
     */
    private String name;
    /**
     * 描述
     */
    private String describe;

    @TableField(exist = false)
    private List<ParkingSpace> parkingSpaceList;

    public Region() {
    }

    public Region(Long id, String name, String describe) {
        this.id = id;
        this.name = name;
        this.describe = describe;
        this.parkingSpaceList = new ArrayList<>();
    }
}
